package com.suyafei.feign;

import com.suyafei.request.NewUserCouponRequest;
import com.suyafei.util.JsonData;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: suyafei-1024-shop
 * @description
 * @author: luffy
 * @create: 2021-03-15 15:25
 */

@FeignClient("suyafei-coupon-service")
@RequestMapping("/api/coupon/v1")
public interface CouponFeignService {
    /**
     * 新用户注册发放优惠券
     *
     * @param newUserCouponRequest
     * @return
     */
    @PostMapping("new_user_coupon")
    JsonData addNewUserCoupon(@RequestBody NewUserCouponRequest newUserCouponRequest);
}
